<template lang="html">
  <!-- 暂无数据 -->
  <div :class="height === 'auto' ? 'indep-not-data auto' : 'indep-not-data'">
  <!-- <div :class="height === 'auto' ? '' : ''"> -->
    <img :src="imgurl" alt="">
    <span>暂无数据</span>
  </div>
</template>

<script>

export default {
  props: ['text', 'icon', 'height'],
  data () {
    return {
      imgurl: ''
    }
  },
  created () {
    let imgurl = 'https://mjmh.meijiameihuo.com/wechat/images/common/nodata/icon_1.png'
    if (this.icon) {
      imgurl = 'https://mjmh.meijiameihuo.com/wechat/images/common/nodata/' + this.icon + '.png'
    }
    this.imgurl = imgurl
  },
  methods: {
  }
}
</script>
<style lang="scss" scoped>
.indep-not-data {
  width: 100%;
  padding-top: 140px;
  height: 350px;
}
.indep-not-data.auto {
  height: auto;
  padding-top: 30px;
}
.indep-not-data img {
  display: block;
  width: 122px;
  height: 122px;
  margin: 0 auto;
}

.indep-not-data span {
  display: block;
  width: 100%;
  margin-top: 30px;
  line-height: 20px;
  text-align: center;
  color: #9EA3B0;
  font-size: 14px;
}
</style>
